package com.jt.service.impl;

import com.jt.dao.AttendanceMapper;
import com.jt.entity.Attendance;
import com.jt.service.AttendanceService;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AttendanceServiceImpl implements AttendanceService {

    @Autowired
    private AttendanceMapper attendanceMapper;

    @Override
    public Attendance queryById(Integer id) {
        return attendanceMapper.queryById(id);
    }

    @Override
    public Integer add(Attendance attendance) {
        return attendanceMapper.add(attendance);
    }

    @Override
    public List<Attendance> queryInfo(String info) {
        return attendanceMapper.queryInfo(info);
    }

    @Override
    public Integer delete(Integer id) {
        return attendanceMapper.delete(id);
    }

    @Override
    public Integer update(Attendance attendance) {
        return attendanceMapper.update(attendance);
    }

    @Override
    public List<Attendance> querypage(RowBounds rowBounds) {
        return attendanceMapper.queryAll(rowBounds);
    }

    @Override
    public Integer count()  {
         return attendanceMapper.count();
    }

    @Override
    public List<Attendance> query() {

        return attendanceMapper.query();
    }

}
